<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<link rel="stylesheet" type="text/css"
	href="<c:url value="/static/jquery-easyui/themes/default/easyui.css"/>">
<link rel="stylesheet" type="text/css"
	href="<c:url value="/static/jquery-easyui/themes/icon.css"/>">
<link rel="Stylesheet" type="text/css"
	href="<c:url value="/static/css/jquery.ui.css"/>" />
<script type="text/javascript"
	src="<c:url value="/static/jquery-easyui/jquery-1.6.min.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/static/jquery-easyui/jquery.easyui.min.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/static/jquery-easyui/plugins/jquery.panel.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/static/jquery-easyui/plugins/jquery.datagrid.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/static/jquery-easyui/plugins/jquery.messager.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/static/jquery-easyui/ext-for-framework.js.jsp"/>"></script>
<script type="text/javascript"
	src="<c:url value="/static/jquery-easyui/locale/easyui-lang-zh_CN.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/static/js/common.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/static/js/Loading.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/static/js/showMsg.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/static/listBox/jquery.clever.listbox.js"/>"></script>
<script type="text/javascript"
	src="<c:url value="/static/js/LodopFuncs.js"/>"></script>
<script type="text/javascript"
    src="<c:url value="/jsp/supplier/webInMaterValue.js"/>"></script>
<script>
	var dataLeft;

	function initList(listDisplayEId) {
		$('#' + listDisplayEId)
				.datagrid(
						{
							url : "<c:url value="/supplier/listSupplier.do"/>",
							nowrap : false,
							striped : true,
							collapsible : true,
							remoteSort : true,
							notSelectByRow : false,
							onLoadError : function() {
								$.messager.alert('错误', '获取数据失败，请与管理员联系！',
										'error');
							},
							toolbar : [
									 {
										id : listDisplayEId + '_btn_add',
										text : '临时加货',
										iconCls : 'icon-add',
										handler : function() {
											var rows = $('#listDisplay')
													.datagrid('getRows');
											if (rows.length == 0) {
												alert("请先选择客户并查询订单数据！");
											} else {
												var new_win = window
														.open(
																"<c:url value='/jsp/openIndexSun.jsp?url=/order/preUpdateSelectMater.do'/>"
																		+ "?ordId="
																		+ rows[0]['ordId']
																		+ "&supId="
																		+ document
																				.getElementById('supId').value
																		+ "&buySupplier=1",
																"sun",
																"width=1200px,height=600px,status=no,scrollbars=yes");
												new_win.focus();
											}
										}
									},  {
										id : listDisplayEId + '_btn_add',
										text : '导入数量和价格',
										iconCls : 'icon-add',
										handler : function() {
											deal();
										}
									}, {
										id : listDisplayEId + '_btn_add',
										text : '预览送货单并打印',
										iconCls : 'icon-print',
										handler : function() {
											prn1_view();
										}
									} /*{, 
																			id : listDisplayEId + '_btn_add',
																			text : '打印送货单',
																			iconCls : 'icon-print',
																			handler : function() {
																				prn1_print();
																			}
																		} */],
							onLoadSuccess : function() {
								var rows = $('#listDisplay')
										.datagrid('getRows');
								for (var i = 0; i < rows.length; i++) {
									var rowIndex = $('#listDisplay').datagrid(
											'getRowIndex', rows[i]['materId']);
									$('#listDisplay').datagrid('beginEdit',
											rowIndex);
								}
							}
						});
	};

	function excel() {
		$('#AddFoodForm').form('submit', {
			url : '<c:url value='/supplier/importSupMaterValueForWeb.do'/>',
			onSubmit : function()//提交按钮相应函数
			{
				return $('#AddFoodForm').form('validate');
			},
			success : function(data) {
				data = eval('(' + data + ')');
				var msgsuccess = data.success + "";
				if (data.success) {
					Loading.Hide();
					$.messager.alert('系统提示', '导入成功', 'info', function() {
						window.close();
					});
				} else {
					var message = "";
					if (data.msg == "msg001") {
						message = "文件不能为空，请选择文件。";
					} else if (data.msg == "msg002") {
						message = "表格内容不正确，没有填写每单位价格。";
					} else if (data.msg == "msg003") {
						message = "日期格式不正确请按照  yyyy-MM-dd 来填写，并保证长度为10位。";
					} else if (data.msg == "msg004") {
						message = "价格格式不正确。";
					} else if (data.msg == "locked") {
						message = "正在提交中或其他人员提交中，请不要连续操作。";
					}
					$.messager.alert("提示", message, 'warning');
				}
			},
			error : function() {
				$.messager.alert("错误", "系统错误，请联系管理员！", 'error');
				return;
			}
		});
	}
	$(document).ready(function() {
		document.getElementById('custId').value = 0;
		document.getElementById('zzy').style.display = 'none';
		initList("listDisplay");
		getSupName();
		setInterval("visitSession()", "200000");
	});
	function getSupName() {
		$.ajax({
			async : false,
			url : "<c:url value='/supplier/getSupPoByUserId.do'/>",
			type : "post",
			success : function(data) {
				if (typeof (data) == 'string' && data != '') {
					data = JSON.parse(data);
				}
				document.getElementById('supName').value = data.supName;
				document.getElementById('supId').value = data.supId;
			}
		});
	}
	function init() {
		$('#date').datebox({
			required : true
		});
	}
	function searchInfo() {
		if ($('#date').datebox('getValue') == '') {
			alert("日期不能为空");
			return;
		} else if (document.getElementById('custId').value == 0) {
			alert('客户不能为空');
			return;
		} else {
			$('#listDisplay').datagrid('load', {
				initFlag : 1,
				date : $('#date').datebox('getValue'),
				custId : $('#custId').val()
			});
		}
	}
	function beginEditList(rows, list, id) {
		for (var i = 0; i < rows.length; i++) {
			var rowIndex = $(list).datagrid('getRowIndex', rows[i][id]);
			$(list).datagrid('beginEdit', rowIndex);
		}
	}
	//添加信息按钮响应函数
	var xhr;
	function deal() {

		var rows = $('#listDisplay').datagrid('getRows');
		for (var i = 0; i < rows.length; i++) {
			var rowIndex = $('#listDisplay').datagrid('getRowIndex',
					rows[i]['materId']);
			$('#listDisplay').datagrid('endEdit', rowIndex);
			if (!isNumber(rows[i]['materValue'])
					|| !isNumber(rows[i]['materWeight'])) {
				$.messager.alert("提示", "'" + rows[i]['materName']
						+ "'金额和数量请填写数字！", 'info');
				beginEditList(rows, '#listDisplay', 'materId');
				return;
			}
		}
		//生成json数据
		var turnoverList = new Array();
		var jsonFater;

		for (var i = 0; i < rows.length; i++) {
			var jsonSun = "{materId:'" + rows[i]['materId'] + "',materLevel:'"
					+ rows[i]['materLevel'] + "',materWeight:'"
					+ rows[i]['materWeight'] + "',materValue:'"
					+ rows[i]['materValue'] + "',date:'"
					+ $('#date').datebox('getValue') + "'}";
			turnoverList.push(jsonSun);
		}
		jsonFater = JSON.stringify(turnoverList);
		$("#materJson").attr("value", jsonFater);
		var form = new FormData();
		//ajax 提交表单数据
		form.append("date", $('#date').datebox('getValue')); // 可以增加表单数据
		form.append("custId", $('#custId').val()); // 可以增加表单数据

		form.append("materJson", jsonFater); // 可以增加表单数据
		// XMLHttpRequest 对象
		xhr = new XMLHttpRequest();
		xhr.onreadystatechange = state_Change;
		xhr
				.open(
						"post",
						'<c:url value='/supplier/importSupMaterValueForWeb.do'/>',
						true);
		/* xhr.onload = function(a) {
			alert(a);
			$.messager.alert('系统提示', '导入成功', 'info', function() {
				beginEditList(rows, '#listDisplay', 'materId');
			});
		}; */
		xhr.send(form);
	}
	function state_Change() {
		if (xhr.readyState == 4) {// 4 = "loaded"

			if (xhr.status == 200) {// 200 = OK
				var returnObject;
				returnObject = xhr.responseText;
				if (typeof (returnObject) == 'string') {
					returnObject = JSON.parse(returnObject);
				}
				if (returnObject.success) {
					alert("价格导入成功！");
					searchInfo();
				} else if (returnObject.msg == 'locked') {
					alert("正在导入价格，请稍等！");
				} else {
					alert("系统错误 ，请联系管理员！")
				}
			} else {
				alert("Problem retrieving XML data");
			}
		}
	}

	$(function() {
		//
		//获取data 数据
		$("#custName").textbox({
			buttonText : '选择',
			iconAlign : 'left',
			editable : false,
			value : "无",
			multiline : true,
			height : '25px',
			onClickButton : function() {
				if ($('#date').datebox('getValue') == '') {
					$.messager.alert('提示', '请先填写日期!', 'info');
					return false;
				}
				initDateLeft($('#date').datebox('getValue'));
				showMsgLeft();
				ShowDiv();

				var left = $('#left').listbox();
				var items = left.getDatas();
				left.removeRange(items);

				/* var right = $('#right').listbox();
				var itemsr = right.getDatas();
				right.removeRange(itemsr);
				 */
				$('#left').listbox().reload({
					data : dataLeft,
					ajaxsettings : {
						data : {
							id : 'a'
						}
					}
				});
			}
		});
	});

	function initDateLeft(orderDate) {
		$.ajax({
			async : false,
			url : "<c:url value='/user/userTestValueForSuppOrder.do'/>"
					+ "?orderDate=" + orderDate,
			type : "post",
			success : function(data) {
				 if (typeof (data) == 'string' && data != '') {
                     data = JSON.parse(data);
                 }
                 dataLeft = data.stringJson;
                 if (typeof (dataLeft) == 'string' && dataLeft != '') {
                     dataLeft = JSON.parse(dataLeft);
                 }
			}
		});
	}
	function ShowDiv() {
		var Allwidth = '100%';
		var Allheight = '100%';
		document.getElementById('zzy').style.display = '';
		Loading.Show({
			width : Allwidth,
			height : Allheight
		});
	}
	//初始化showMsg
	function showMsgLeft() {
		$('#left').listbox({
			data : dataLeft,
			height : 300,
			width : 200,
			dndscope : 'demo',
			dnd : false,
			multiselect : true,
			selectchange : function(data) {
				if (data && data.length > 0) {
					$('#btnRight').attr('disabled', false);
				} else {
					$('#btnRight').attr('disabled', true);
				}
			}
		});
		$('#right').listbox({
			//data: data,
			height : 300,
			width : 200,
			dndscope : 'demo',
			dnd : true,
			multiselect : true
		});
		$('#btnRightAll').click(function() {
			var left = $('#left').listbox();
			var items = left.getDatas();
			left.clear();
			$('#right').listbox().addRange(items);
		});
		$('#btnLeftAll').click(function() {
			var right = $('#right').listbox();
			var items = right.getDatas();
			right.clear();
			$('#left').listbox().addRange(items);
		});
		$('#btnRight').click(function() {
			var left = $('#left').listbox();
			var items = left.getSelected();
			left.removeRange(items);
			$('#right').listbox().addRange(items);
		});
		$('#btnLeft').click(function() {
			var right = $('#right').listbox();
			var items = right.getSelected();
			right.removeRange(items);
			$('#left').listbox().addRange(items);
		});
		$('#btnRemove').click(function() {
			$('#right').listbox().removeRange([ {
				value : 2
			}, {
				value : 26
			} ]);
		});
		$('#btnSelect').click(function() {
			var selected = $('#right').listbox().getSelected();
			var msg = 'Selected count is: ' + selected.length;
			if (selected.length > 0) {
				msg += ', The first item text is: ' + selected[0].text;
			}
			msg += '.';
			alert(msg);
		});
		$('#btnGetItems').click(function() {
			var selected = $('#right').listbox('getDatas');
			alert('Items count is: ' + selected.length);
		});
		$('#btnSetSelection').click(function() {
			$('#left').listbox('setSelection', 1);
		});
		$('#select').click(function() {
			Loading.Hide();
			document.getElementById('zzy').style.display = 'none';

			var right = $('#right').listbox();
			var items = right.getDatas();
			var userNames = '';
			var userIds = '';
			if (items.length > 1) {
				alert("只能选取一位客户");
				return false;
			}

			if (items.length > 0) {
				for ( var e in items) {
					userNames = userNames + items[e].text + ',';
					userIds = userIds + items[e].value + ',';
				}
				userNames = userNames.substring(0, userNames.length - 1);
				userIds = userIds.substring(0, userIds.length - 1);
			}
			if (userNames != '' && userIds != '') {
				$('#custName').textbox('setValue', userNames);
				document.getElementById('custId').value = userIds;
			} else {
				$('#custName').textbox('setValue', '无');
				document.getElementById('custId').value = 0;
			}
		});
		$('#noselect').click(function() {
			Loading.Hide();
			document.getElementById('zzy').style.display = 'none';
		});
	}
	function prn1_print() {
		LODOP = getLodop();
		LODOP.PRINT_INIT("打印控件功能演示_Lodop功能_整页表格");
		LODOP.SET_PRINT_PAGESIZE(1, 0, 0, "A4");
		//alert(document.getElementById("listDisplay"));
		//LODOP.ADD_PRINT_TABLE("2%","1%","96%","98%",document.getElementById("listDisplay").innerHTML);
		var tableString = getPrnStr();
		LODOP.ADD_PRINT_TABLE(5, 5, '99%', '99%', tableString);
		LODOP.SET_PREVIEW_WINDOW(0, 0, 0, 800, 600, "");
		LODOP.PRINT(); // 最后一个打印(或预览、维护、设计)语句
	}
	function prn1_view() {
		LODOP = getLodop();
		LODOP.PRINT_INIT("打印控件功能演示_Lodop功能_整页表格");
		LODOP.SET_PRINT_PAGESIZE(1, 0, 0, "A4");
		//alert(document.getElementById("listDisplay"));
		//LODOP.ADD_PRINT_TABLE("2%","1%","96%","98%",document.getElementById("listDisplay").innerHTML);
		var tableString = getPrnStr();
		LODOP.ADD_PRINT_TABLE(5, 5, '99%', '94%', tableString);
		LODOP.SET_PREVIEW_WINDOW(0, 0, 0, 800, 600, "");
		LODOP.PREVIEW();
	}
	function getPrnStr() {
		var rows = $('#listDisplay').datagrid('getRows');

		var tableStr;
		tableStr = "<table  style='border-collapse: collapse; border-style:solid;border: none;'>"
		//设置公司标题
		tableStr = tableStr + "<tr>";
		tableStr = tableStr
				+ "<td colspan='10' align='center' style='font-size:20px;border-style:solid;border-width:1px;height:30px'>"
				+ document.getElementById('supName').value + "</td>";

		tableStr = tableStr + "</tr>";

		//设置列表属性
		tableStr = tableStr + "<tr>";
		tableStr = tableStr
				+ "<td style='border-style:solid;border-width:1px;width:6%'>序号</td>";
		tableStr = tableStr
				+ "<td style='border-style:solid;border-width:1px;width:16%'>店名</td>";
		tableStr = tableStr
				+ "<td style='border-style:solid;border-width:1px;width:15%'>材料名</td>";
		tableStr = tableStr
				+ "<td style='border-style:solid;border-width:1px;width:10%'>种类</td>";
		tableStr = tableStr
				+ "<td style='border-style:solid;border-width:1px;width:13%'>规格</td>";
		tableStr = tableStr
				+ "<td align='right' style='border-style:solid;border-width:1px;width:10%'>需求数量</td>";
		tableStr = tableStr
				+ "<td align='right' style='border-style:solid;border-width:1px;width:10%'>实际数量</td>";
		tableStr = tableStr
				+ "<td align='center' style='border-style:solid;border-width:1px;width:8%'>单位</td>";
		tableStr = tableStr
				+ "<td align='right' style='border-style:solid;border-width:1px;width:9%'>单价</td>";
		tableStr = tableStr
				+ "<td align='right' style='border-style:solid;border-width:1px;width:9%'>总价</td>";
		tableStr = tableStr + "</tr>";
		var materValueAllList = 0;
		for (var i = 0; i < rows.length; i++) {
			tableStr = tableStr + "<tr>";
			tableStr = tableStr
					+ "<td style='border-style:solid;border-width:1px;'>"
					+ (i + 1) + "</td>";
			tableStr = tableStr
					+ "<td style='border-style:solid;border-width:1px;'>"
					+ document.getElementById('custName').value + "</td>";
			tableStr = tableStr
					+ "<td style='border-style:solid;border-width:1px;'>"
					+ rows[i]['materName'] + "</td>";
			tableStr = tableStr
					+ "<td style='border-style:solid;border-width:1px;'>"
					+ rows[i]['materTypeName'] + "</td>";
			tableStr = tableStr
					+ "<td style='border-style:solid;border-width:1px;'>"
					+ rows[i]['specifications'] + "</td>";
			tableStr = tableStr
					+ "<td align='right' style='border-style:solid;border-width:1px;'>"
					+ rows[i]['materWeightNeed'] + "</td>";
			tableStr = tableStr
					+ "<td align='right' style='border-style:solid;border-width:1px;'>"
					+ rows[i]['materWeight'] + "</td>";
			tableStr = tableStr
					+ "<td align='center' style='border-style:solid;border-width:1px;'>"
					+ rows[i]['unit'] + "</td>";
			tableStr = tableStr
					+ "<td align='right' style='border-style:solid;border-width:1px;'>￥"
					+ rows[i]['materValue'] + "</td>";
			tableStr = tableStr
					+ "<td align='right' style='border-style:solid;border-width:1px;'>￥"
					+ rows[i]['materValueAll'] + "</td>";
			tableStr = tableStr + "</tr>";
			materValueAllList = decimal(accAdd(materValueAllList,
					rows[i]['materValueAll']), 2);
		}
		tableStr = tableStr + "<tr>";
		tableStr = tableStr
				+ "<td colspan='2' align='left' style='border-style:solid;border-width:1px;'>订单日期</td>";
		tableStr = tableStr
				+ "<td colspan='3' align='left' style='border-style:solid;border-width:1px;'>"
				+ $('#date').datebox('getValue') + "</td>";
		tableStr = tableStr
				+ "<td colspan='4' align='right' style='border-style:solid;border-width:1px;'>合计总价钱</td>";
		tableStr = tableStr
				+ "<td align='right' style='border-style:solid;border-width:1px;'>￥"
				+ materValueAllList + "</td>";
		tableStr = tableStr + "</tr>";
		tableStr = tableStr + "</table>";

		return tableStr;
	}
	
</script>

</head>
<body>
	<table width="98%">
		<tr>
			<td>
				<form id="AddFoodForm" name="AddFoodForm" method="post"
					enctype="multipart/form-data">
					<div
						style="height: auto; width: 1180px; background: #fafafa; padding: 5px;"
						class="easyui-panel" title="属性列表" iconCls="icon-add"
						collapsible="true" minimizable="false" maximizable="false"
						closable="false">
						<table cellpadding="5">
							<tr>
								<td>日期</td>
								<td><input class="easyui-datebox" name="date" id="date"
									editable="false" data-options="required:true" /></td>
								<td>客户id</td>
								<td><input
									style="word-wrap: break-word; word-break: break-all;"
									id="custName" name="custName"></input></td>
								<td><input class="easyui-validatebox" editable="false"
									id="custId" name="custId" type="hidden"></input></td>
								<td><input class="easyui-validatebox" editable="false"
									id="supName" name="supName" type="hidden"></input></td>
								<td><input class="easyui-validatebox" editable="false"
									id="supId" name="supId" type="hidden"></input></td>
								<td><input type="button" onclick="searchInfo()" value="查询"></td>
							</tr>

							<input class="easyui-validatebox" type="hidden" name="idList" />
							<input class="easyui-validatebox" type="hidden" name="excelList" />
							<input class="easyui-validatebox" type="hidden" name="materJson" />
						</table>
					</div>
				</form>

			</td>
		</tr>
		<tr>
			<td>
				<table id="listDisplay" title="进货材料列表" iconCls="icon-list"
					singleSelect="true" idField="materId" loadMsg="请稍候......"
					pagination="false" pageSize="20" sortName="materId"
					rownumbers="true" sortOrder="asc">
					<thead>
						<tr>
						    <th field="ordId" width="80" sortable="true" >订单ID</th>
							<th field="materId" width="80" sortable="true">材料ID</th>
							<th field="materName" width="80" sortable="true">材料名</th>
							<th field="materLevel" width="80" sortable="true" hidden='true'>等级</th>
							<th field="brands" width="70" sortable="true">品牌</th>
							<th field="specifications" width="70" sortable="true">规格</th>
							<th field="materTypeName" width="80" sortable="true">种类</th>
							<th field="materWeightNeed" width="50" sortable="true">需求送货数量</th>
							<th field="materWeight" width="50" sortable="true" editor="text">实际送货数量</th>
							<th field="unit" width="50" sortable="true">单位</th>
							<th field="materValue" width="80" sortable="true" editor="text">实际单位价格</th>
							<th field="materValueAll" width="80" sortable="true">实际总价格</th>

						</tr>
					</thead>
				</table>
			</td>
		</tr>
	</table>
	<div
		style='position: absolute; left: 40px; top: 40px; z-index: 101; background-color: #FFFFFF; border-radius: 10px; width: 550px;'
		id="zzy">
		<table align="center">
			<tr>
				<td colspan="3">
					<form id="searchFormForShowCust" name="searchFormForShowCust"
						method="post" accept-charset="UTF-8">
						<div
							style="height: auto; width: 470px; background: #fafafa; padding: 5px;"
							class="easyui-panel" title="查询" iconCls="icon-search"
							collapsible="true" minimizable="false" maximizable="false"
							closable="false">
							<table>
								<tr>
									<td>省:</td>
									<td><input class="easyui-combobox" name="provinceShow"
										id="provinceShow" required="true" /></td>
									<td>市:</td>
									<td><input class="easyui-combobox" name="cityShow"
										id="cityShow" required="true" /></td>
								</tr>
								<tr>
									<td>区:</td>
									<td><input class="easyui-combobox" name="countryShow"
										id="countryShow" required="true" /></td>
									<td colspan="2"><a href="#" class="easyui-linkbutton"
										data-options="iconCls:'icon-search'" style="width: 60px"
										onclick="searchInfoForShowCust()">查询</a></td>
								</tr>
							</table>
						</div>
					</form>
				</td>
			</tr>
			<tr>
				<td>
					<ul id="left">
					</ul>
				</td>
				<td><input type="button" value="&gt;&gt;" id="btnRightAll"
					style="width: 50px;" /><br /> <input type="button" value="&gt;"
					id="btnRight" style="width: 50px;" /><br /> <input type="button"
					value="&lt;" id="btnLeft" style="width: 50px;" /><br /> <input
					type="button" value="&lt;&lt;" id="btnLeftAll" style="width: 50px;" /></td>
				<td>
					<ul id="right">
					</ul>
				</td>
			</tr>
		</table>
		<table align="center">
			<tr>
				<!--  
                <td><input type="button" value="Add Item" id="btnAdd" /></td>
                <td><input type="button" value="Remove Item" id="btnRemove" /></td>
                <td><input type="button" value="Get Select" id="btnSelect" /></td>
                <td><input type="button" value="Get Items" id="btnGetItems" /></td>
                <td><input type="button" value="SetSelection (value equal to '1')" id="btnSetSelection" /></td>
                <td><input type="button" value="Reload" id="btnReload" /></td>
                -->
				<td><input type="button" value="取消" id="noselect" /></td>
				<td width="200px"></td>
				<td><input type="button" value="选择" id="select" /></td>

			</tr>
		</table>
	</div>
	<object id="LODOP_OB"
		classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
		<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
	</object>
</body>
</html>